package com.ayf.payment.game.api.service;

import com.ayf.payment.game.api.dto.criteria.MerchantBankCriteria;
import com.ayf.payment.game.api.entity.MerchantBank;

import java.beans.Transient;
import java.util.List;

public interface MerchantBankService {

    /**
     * 查看商户结算信息
     *
     * @param merchantBank
     * @return
     */
    MerchantBank selectOne(MerchantBank merchantBank);

    /**
     * 查看商户结算信息
     *
     * @param merchantBank
     * @return
     */
    MerchantBank getMerchantBankByMid(Integer merchantId);

    /**
     * 增加结算银行卡信息
     *
     * @param merchantBankCriteria
     * @return
     */
    @Transient
    int insert(MerchantBankCriteria merchantBankCriteria);

    /**
     * 更新结算银行行卡信息
     *
     * @param merchantBankCriteria
     * @return
     */
    boolean updateBankStatus(MerchantBankCriteria merchantBankCriteria);

    /**
     * 查询银行卡变更记录
     *
     * @param merchantBankCriteria
     * @return
     */
    List<MerchantBank> selectList(MerchantBankCriteria merchantBankCriteria);

    /**
     * 查询待审核的银行卡信息
     *
     * @param merchantBankCriteria
     * @return
     */
    List<MerchantBank> selectAuditedList(MerchantBankCriteria merchantBankCriteria);
}

